package org.hk.entity;

/**
 * 实体类和数据库的表成对应关系，
 * 1.表名首字母大写就是类名
 * 2.字段名就是成员变量，数据库的数据类型要和java的数据类型对应
 */
public class Admin {
    private String adid;
    private String adName;
    private String adPWD;
    private Integer adState;
    private String adImg;
    //一定要生成无参的构造方法
    public Admin() {
    }

    public Admin(String adid, String adName, String adPWD, Integer adState, String adImg) {
        this.adid = adid;
        this.adName = adName;
        this.adPWD = adPWD;
        this.adState = adState;
        this.adImg = adImg;
    }

    public String getAdid() {
        return adid;
    }

    public void setAdid(String adid) {
        this.adid = adid;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public String getAdPWD() {
        return adPWD;
    }

    public void setAdPWD(String adPWD) {
        this.adPWD = adPWD;
    }

    public Integer getAdState() {
        return adState;
    }

    public void setAdState(Integer adState) {
        this.adState = adState;
    }

    public String getAdImg() {
        return adImg;
    }

    public void setAdImg(String adImg) {
        this.adImg = adImg;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adid='" + adid + '\'' +
                ", adName='" + adName + '\'' +
                ", adPWD='" + adPWD + '\'' +
                ", adState=" + adState +
                ", adImg='" + adImg + '\'' +
                '}';
    }

    public static void main(String[] args) {

    }
}
